import request2 from "@/utils/request2";

//闪屏/下拉效果 列表
export function indexList(query) {
  return request2({
    url: "/admin/retail/indexad_index",
    method: "get",
    params: query
  });
}

//闪屏/下拉效果 添加
export function addIndex(query) {
  return request2({
    url: "/admin/retail/indexad_store",
    method: "post",
    data: query
  });
}

//闪屏/下拉效果 详情
export function indexDetail(query) {
  return request2({
    url: "/admin/retail/indexad_show",
    method: "get",
    params: query
  });
}

//闪屏/下拉效果 删除
export function indexDelete(query) {
  return request2({
    url: "/admin/retail/indexad_delete",
    method: "get",
    params: query
  });
}

//闪屏/下拉效果 编辑
export function updateIndex(query) {
  return request2({
    url:"/admin/retail/indexad_update",
    method:"post",
    data:query
  })

}
